package com.example.test;

import java.util.HashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MainT {
    static final int MAXIMUM_CAPACITY = 1 << 30;
    public static void main(String[] args) {

        HashMap<String, String> m = new HashMap<>();
        m.put("AaAa", "1");
        m.put("AaBB", "1");
        m.put("BBAa", "1");
        m.put("Aa", "1");
        m.put("AaAaAaAa", "1");
        m.put("AaAaAaBB", "2");
        m.put("AaAaBBAa", "3");
        m.put("AaAaBBBB", "4");
        m.put("AaBBAaAa", "5");
        m.put("AaBBAaBB", "6");
        m.put("AaBBBBAa", "7");
        m.put("AaBBBBBB", "8");
        m.put("BBAaAaAa", "9");
        m.put("BBAaAaBB", "10");
        m.put("BBAaBBAa", "11");
        m.put("BBAaBBBB", "12");
//        m.put("BB", "1");
//        m.put("14", "1");
        System.out.println(m.size());

        ExecutorService executorService = Executors.newCachedThreadPool();
        ExecutorService executorService1 = Executors.newFixedThreadPool(20);
        ExecutorService executorService2 = Executors.newSingleThreadExecutor();
        Executors.newScheduledThreadPool(2);

    }

    static final int tableSizeFor(int cap) {
        int n = cap - 1;
        n |= n >>> 1;
        n |= n >>> 2;
        n |= n >>> 4;
        n |= n >>> 8;
        n |= n >>> 16;
        return (n < 0) ? 1 : (n >= MAXIMUM_CAPACITY) ? MAXIMUM_CAPACITY : n + 1;
    }

}
